var express = require('express');
var router = express.Router();
//引入C层
const { addPack, getPack, findPack, changePack, delPack, startPack } = require('../controllers/pack');

//RESTful跟普通接口不能混用
router.get('/getpack', getPack);
router.get('/startPack', startPack);

router.post('/', addPack);
router.get('/:_id', findPack);
router.post('/changePack', changePack);
router.delete('/', delPack);

module.exports = router;